package com.zhs.smartmall.product.dto;

import io.swagger.annotations.ApiModel;
import lombok.*;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 *
 * @author zhenghuisheng
 * @since 2023-11-11
 */
@Data
@ApiModel(value = "PmsSpuCommentDto")
public class PmsSpuCommentDto implements Serializable {
        //表字段
        private static final long serialVersionUID = 1L;
        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "主键")
        private Long id;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "sku_id")
        private Long skuId;

        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty(value = "spu_id")
        private Long spuId;

        @ApiModelProperty(value = "商品名字")
        private String spuName;

        @ApiModelProperty(value = "会员昵称")
        private String memberNickName;

        @ApiModelProperty(value = "星级")
        private Integer star;

        @ApiModelProperty(value = "会员ip")
        private String memberIp;

        @ApiModelProperty(value = "创建时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

        @ApiModelProperty(value = "显示状态[0-不显示，1-显示]")
        private Integer showStatus;

        @ApiModelProperty(value = "购买时属性组合")
        private String spuAttributes;

        @ApiModelProperty(value = "点赞数")
        private Integer likesCount;

        @ApiModelProperty(value = "回复数")
        private Integer replyCount;

        @ApiModelProperty(value = "评论图片/视频[json数据；[{type:文件类型,url:资源路径}]]")
        private String resources;

        @ApiModelProperty(value = "内容")
        private String content;

        @ApiModelProperty(value = "用户头像")
        private String memberIcon;

        @ApiModelProperty(value = "评论类型[0 - 对商品的直接评论，1 - 对评论的回复]")
        private Integer commentType;

        @ApiModelProperty(value = "更新时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;

        @ApiModelProperty(value = "是否删除")
        private Integer isDeleted;

        //=====================自定义字段=====================

        //id
        private List<String> idList;
}
